/* 付费阅读文章页面样式 */

/* 全局容器样式 */
.modern-premium-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding-bottom: 140rpx; /* 增加底部内边距以确保与底部操作栏有足够的间距 */
}

/* 顶部导航栏 */
.modern-header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-bottom: 1rpx solid rgba(255, 255, 255, 0.2);
}

/* 滚动区域 */
.modern-scroll {
  padding: 20rpx;
}

/* 文章头部卡片 */
.article-header-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.article-main-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 30rpx;
  line-height: 1.4;
}

.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15rpx;
  margin-top: 20rpx;
}

.meta-tag {
  display: flex;
  align-items: center;
  background: rgba(102, 126, 234, 0.1);
  padding: 8rpx 16rpx;
  border-radius: 12rpx;
  font-size: 24rpx;
}

.meta-icon {
  margin-right: 8rpx;
  font-size: 28rpx;
}

.meta-label {
  color: #667eea;
  font-weight: 500;
}

/* 付费购买区域 */
.premium-purchase-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.section-header {
  margin-bottom: 30rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.section-subtitle {
  font-size: 26rpx;
  color: #666;
  display: block;
}

.pricing-options {
  display: flex;
  gap: 20rpx;
}

.pricing-option-card {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16rpx;
  padding: 30rpx 20rpx;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pricing-option-card:hover {
  transform: translateY(-5rpx);
}

.option-icon {
  font-size: 48rpx;
  margin-bottom: 15rpx;
  display: block;
}

.option-content {
  margin-bottom: 20rpx;
}

.option-title {
  font-size: 28rpx;
  font-weight: 500;
  display: block;
  margin-bottom: 10rpx;
}

.option-price {
  font-size: 36rpx;
  font-weight: bold;
  display: block;
}

.option-badge {
  position: absolute;
  top: 10rpx;
  right: 10rpx;
  background: #ff6b6b;
  padding: 4rpx 12rpx;
  border-radius: 8rpx;
  font-size: 20rpx;
}

.badge-text {
  font-weight: bold;
}

/* 资料详情区域 */
.material-details-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.detail-description {
  font-size: 28rpx;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30rpx;
}

.preview-content-wrapper {
  position: relative;
  min-height: 300rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 20rpx;
}

.preview-placeholder-lines {
  opacity: 0.7;
}

.placeholder-line {
  height: 20rpx;
  background: #e9ecef;
  border-radius: 4rpx;
  margin-bottom: 15rpx;
}

.placeholder-line.short {
  width: 70%;
}

/* 资料内容区域 */
.material-content-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.content-wrapper {
  position: relative;
  min-height: 300rpx;
}

.preview-placeholder {
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 30rpx;
  text-align: center;
}

.preview-text {
  font-size: 30rpx;
  color: #666;
  margin-bottom: 20rpx;
  display: block;
}

.preview-lines {
  opacity: 0.7;
}

.preview-lines .line {
  height: 20rpx;
  background: #e9ecef;
  border-radius: 4rpx;
  margin-bottom: 15rpx;
}

.preview-lines .line.short {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.full-content {
  font-size: 28rpx;
  color: #555;
  line-height: 1.6;
}

.material-type-indicator {
  text-align: center;
  margin-bottom: 30rpx;
}

.type-tag {
  display: inline-flex;
  align-items: center;
  padding: 10rpx 20rpx;
  border-radius: 50rpx;
  font-size: 24rpx;
  font-weight: bold;
}

.type-tag.disk {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.type-tag.online {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.type-icon {
  margin-right: 10rpx;
  font-size: 28rpx;
}

.material-description {
  margin-bottom: 30rpx;
  padding: 20rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
  border: 1rpx solid #ced4da; /* 调整边框颜色使其更明显 */
}

/* 付费遮罩 */
.premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40rpx;
  text-align: center;
}

.overlay-inner {
  color: white;
}

.overlay-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
  display: block;
}

.overlay-title {
  font-size: 32rpx;
  font-weight: bold;
  margin-bottom: 15rpx;
  display: block;
}

.overlay-subtitle {
  font-size: 26rpx;
  margin-bottom: 30rpx;
  display: block;
  opacity: 0.9;
}



/* 底部操作栏 */
.modern-action-bar {
  position: fixed;
  bottom: 20rpx; /* 与父级组件底部保留一定间距 */
  left: 20rpx;
  right: 20rpx;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20rpx;
  border-top: 1rpx solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -5rpx 20rpx rgba(0, 0, 0, 0.1);
  border-radius: 20rpx; /* 添加圆角使样式更美观 */
}

.action-content {
  display: flex;
  justify-content: center;
}

.main-action-button {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50rpx;
  padding: 25rpx;
  text-align: center;
  color: white;
}

.button-text {
  font-size: 32rpx;
  font-weight: bold;
  display: block;
  margin-bottom: 5rpx;
}

.button-subtext {
  font-size: 24rpx;
  opacity: 0.9;
  display: block;
}

.access-button {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 40rpx;
  padding: 20rpx;
  text-align: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rpx;
  margin-top: 30rpx;
}

.access-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20rpx;
}

.button-icon {
  font-size: 36rpx;
}

/* 弹窗样式 */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.payment-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.payment-modal-content {
  background: white;
  border-radius: 20rpx;
  width: 90%;
  max-width: 600rpx;
  overflow: hidden;
  transform: translateY(50rpx);
  transition: transform 0.3s ease;
}

.payment-modal-overlay.show .payment-modal-content {
  transform: translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40rpx 30rpx;
  text-align: center;
  color: white;
}

.modal-title {
  font-size: 36rpx;
  font-weight: bold;
  display: block;
  margin-bottom: 10rpx;
}

.modal-subtitle {
  font-size: 26rpx;
  opacity: 0.9;
  display: block;
}

.modal-body {
  padding: 40rpx 30rpx;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.payment-method-card {
  display: flex;
  align-items: center;
  padding: 30rpx;
  border: 2rpx solid #eee;
  border-radius: 16rpx;
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  border-color: #667eea;
  transform: translateY(-2rpx);
  box-shadow: 0 10rpx 20rpx rgba(102, 126, 234, 0.2);
}

.method-icon {
  font-size: 48rpx;
  margin-right: 20rpx;
}

.method-info {
  flex: 1;
}

.method-title {
  font-size: 30rpx;
  font-weight: 500;
  display: block;
  margin-bottom: 5rpx;
}

.method-amount {
  font-size: 32rpx;
  font-weight: bold;
  color: #667eea;
  display: block;
}

.modal-footer {
  padding: 0 30rpx 30rpx;
}

.footer-actions {
  display: flex;
  justify-content: center;
}

.cancel-action {
  flex: 1;
  background: #f8f9fa;
  padding: 25rpx;
  border-radius: 50rpx;
  text-align: center;
}

.cancel-text {
  color: #666;
  font-size: 30rpx;
  font-weight: 500;
}

/* 加载弹窗 */
.loading-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.loading-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-modal-content {
  background: white;
  border-radius: 20rpx;
  width: 90%;
  max-width: 600rpx;
  overflow: hidden;
  transform: translateY(50rpx);
  transition: transform 0.3s ease;
}

.loading-modal-overlay.show .loading-modal-content {
  transform: translateY(0);
}

.loading-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40rpx 30rpx;
  text-align: center;
  color: white;
}

.loading-title {
  font-size: 36rpx;
  font-weight: bold;
  display: block;
}

.loading-body {
  padding: 40rpx 30rpx;
}

.progress-wrapper {
  text-align: center;
}

.progress-track {
  height: 20rpx;
  background: #e9ecef;
  border-radius: 10rpx;
  overflow: hidden;
  margin-bottom: 30rpx;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18rpx;
  font-weight: bold;
  transition: width 0.3s ease;
}

.loading-message {
  font-size: 26rpx;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pricing-options {
    flex-direction: column;
  }
  
  .article-main-title {
    font-size: 32rpx;
  }
  
  .option-price {
    font-size: 32rpx;
  }
  
  .button-text {
    font-size: 28rpx;
  }
  
  .button-subtext {
    font-size: 22rpx;
  }
}